package alp.starcode.nudtportal.framework.mybatis.vo;

import alp.starcode.nudtportal.framework.constant.ElasticConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


/**
 * es映射类，消息队列
 *
 * @Author wj
 * @Date 2023/8/14 16:06
 */
@Data
@Document(indexName = ElasticConst.LOG_DATA_EXCHANGE)
public class LogDataExchangeVO {

    @ApiModelProperty(value = "数据交换流水号")
    @Field(type = FieldType.Keyword)
    private String exchangeId;

    @ApiModelProperty(value = "用户流水号")
    @Field(type = FieldType.Keyword)
    private String userId;

    @ApiModelProperty(value = "一卡通卡号")
    @Field(type = FieldType.Text)
    private String campusNumber;

    @Field(type = FieldType.Text)
    @ApiModelProperty(value = "登录账号")
    private String loginName;

    @ApiModelProperty(value = "交换时间")
    @Field(type = FieldType.Long)
    private Long exchangeTime;

    @Field(type = FieldType.Integer)
    @ApiModelProperty(value = "交换状态")
    private Integer exchangeStatus;

    @Field(type = FieldType.Text)
    @ApiModelProperty(value = "交换类型")
    private String exchangeType;

    @Field(type = FieldType.Text)
    @ApiModelProperty(value = "交换数据")
    private String exchangeData;

    @Field(type = FieldType.Long)
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @Field(type = FieldType.Long)
    @ApiModelProperty(value = "修改时间")
    private Long updateTime;
}
